import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(persist)

export default pinia

import { useUserStore, UserInfo } from './modules/user'
import { usePeerStore } from './modules/peer.js'
export { useUserStore, UserInfo, usePeerStore }
